package com.cy.pj.common.web.config;

import com.cy.pj.common.web.interceptor.TimeAccessInterceptor;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class LogSpringWebConfig implements WebMvcConfigurer {
    /**
     * 注册拦截器
     */
    @Override
    public void addInterceptors(InterceptorRegistry registry){
        registry.addInterceptor(new TimeAccessInterceptor())
                .addPathPatterns();
    }
}
